﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Data
{


    public static class CodeAutoCompleteData
    {
        public static List<AutocompleteData> la = new List<AutocompleteData>();

        /// <summary>
        /// 代码提示
        /// </summary>
        /// <returns></returns>
        public static List<AutocompleteData> BuildAutocomplete()
        {
            la = new List<AutocompleteData>(){
                new AutocompleteData(){
                    Snippets = "function ^()\n{\n}",
                    MenuText = "function",
                    ToolTipTitle = "",
                    ToolTipText = ""                    
                },
                new AutocompleteData(){
                    Snippets = "import {^}",
                    MenuText = "import",
                    ToolTipTitle = "",
                    ToolTipText = ""                    
                },
                new AutocompleteData(){
                    Snippets = "JSON.stringify (^)",
                    MenuText = "JSON stringify",
                    ToolTipTitle = "",
                    ToolTipText = ""                    
                },
                new AutocompleteData(){
                    Snippets = @"Heads.get(""^"")",
                    MenuText = "Heads.get",
                    ToolTipTitle = "",
                    ToolTipText = ""                    
                },
                new AutocompleteData(){
                    Snippets = @"Bodys.get(""^"")",
                    MenuText = "Bodys.get",
                    ToolTipTitle = "",
                    ToolTipText = ""                    
                },
                new AutocompleteData(){
                    Snippets = @"$LoadC(""^"","""",new Array())",
                    MenuText = "$LoadC",
                    ToolTipTitle = "加载C# DLL",
                    ToolTipText = "加载C# DLL"                    
                },
            };
            return la;
        }

    }

    public class AutocompleteData
    {
        public string Snippets;
        public string MenuText;
        public string ToolTipTitle;
        public string ToolTipText;
    }
}
